<div class="post-content">
    <div class="ui segment" style="margin-left: 20px; margin-right: 20px">
        <h3><a href="/posts/<%= post._id %>"><%= post.title %></a></h3>
        <pre><%- post.content %></pre>
        <% if (post.thumbs) { %>
        <img class="photos" width="100%" height="100%" src="/img/<%= post.thumbs %>">
        <% } %>
        <div>
            <span class="tag"><%= post.author.name %></span>
            <span class="tag"><%= post.created_at %></span>
            <span class="tag right">
                        <span>浏览(<%= post.pv %>)</span>
                <!--<span>留言(<%= post.commentsCount %>)</span>-->

                <% if (user && post.author._id && user._id.toString() === post.author._id.toString()) { %>
                <div class="ui inline dropdown">
                                <div class="text"></div>
                                <i class="dropdown icon"></i>
                                <div class="menu">
                                    <div class="item"><a href="/posts/<%= post._id %>/edit">编辑</a></div>
                                    <div class="item"><a href="/posts/<%= post._id %>/remove">删除</a></div>
                                </div>
                            </div>
                <% } %>

            </span>
        </div>
    </div>

</div>